﻿using System;
using System.Globalization;

namespace InputBoxes.Controls
{
    public class NumericValueTypeInputBoxBase<T> : OrderedValueTypeInputBoxBase<T> where T : struct, IComparable<T>
    {
        public NumericValueTypeInputBoxBase()
        {
            _numberStyles = NumberStyles.Any;
        }

        private NumberStyles _numberStyles;
        public NumberStyles NumberStyles
        {
            get { return _numberStyles; }
            set
            {
                _numberStyles = value;
                PerformValidate();
            }
        }
    }
}